module.exports = function(lab) {
    return {
        "导入商品" : function() {

            return @.async(function(){
                lab.slime.trader.@importSKU(@.uuid(),{

                    barcode : "692321321321321",
                    item_code : "X112121",
                    retail_unit : "124g",
                    package_sku : 12,
                    name : "aa",
                    brand : "A",
                    category : "B",
                    trader_price : 10,
                    image_url : "",
                    memo : ""
                }).pipe(this);
            })
        },

        "搜索商品" : function() {

            return @.async(function() {

                lab.slime.trader.searchSKUs({
                    currentOU : {
                        id : "0080000c-c78e-4c9d-8e3e-5db133b4080b"
                    }
                }, {
                    brand : "A",
                    category : "B",
                    price_low : 10
                }).pipe(this)
            })
         },

        "更新商品" : function() {

            return @.async(function() {
                lab.slime.trader.@updateSKU("0080000c-c78e-4c9d-8e3e-5db133b4080b", {

                    id : "b0a80d99-dd29-4a21-aa60-d7602e766a1a",
                    barcode : "792321321321321",
                    item_code : "X112",
                    retail_unit : "124g",
                    package_sku : 12,
                    name : "aa",
                    brand : "A",
                    category : "B",
                    trader_price : 10,
                    image_url : "",
                    memo : ""
                }).pipe(this)
            })
        },

        "批量删除" : function() {

            return @.async(function() {

                lab.slime.trader.batchDeleteSKUs({
                    currentOU : {
                        id : "0080000c-c78e-4c9d-8e3e-5db133b4080b"
                    }
                }).pipe(this)
            })
        }
    }
}